package com.retailshop.shopuser.service.impl;

import com.retailshop.shopuser.entity.LeaveMessage;
import com.retailshop.shopuser.mapper.LeaveMessageMapper;
import com.retailshop.shopuser.service.LeaveMessageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service("leaveMessageService")
public class LeaveMessageServiceImpl implements LeaveMessageService {


    @Autowired
    LeaveMessageMapper leaveMessageMapper;

    @Override
    public int deleteByPrimaryKey(Integer leaveId) {
        return leaveMessageMapper.deleteByPrimaryKey(leaveId);
    }

    @Override
    public int insert(LeaveMessage record) {
        return leaveMessageMapper.insert(record);
    }

    @Override
    public int insertSelective(LeaveMessage record) {
        return leaveMessageMapper.insertSelective(record);
    }

    @Override
    public LeaveMessage selectByPrimaryKey(Integer leaveId) {
        return leaveMessageMapper.selectByPrimaryKey(leaveId);
    }

    @Override
    public int updateByPrimaryKeySelective(LeaveMessage record) {
        return leaveMessageMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKeyWithBLOBs(LeaveMessage record) {
        return leaveMessageMapper.updateByPrimaryKeyWithBLOBs(record);
    }

    @Override
    public int updateByPrimaryKey(LeaveMessage record) {
        return leaveMessageMapper.updateByPrimaryKey(record);
    }
}
